package com.leiduoduo.oms.dao;

import com.leiduoduo.oms.pojo.Chargeback;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ChargebackDao {
    /**
     * 添加Chargeback
     * @param chargeback
     * @return
     */
    boolean addChargeback(Chargeback chargeback);

    /**
     * 删除Chargeback
     * @param chargeback
     * @return
     */
    boolean delChargeback(Chargeback chargeback);

    /**
     * 更新Chargeback
     * @param chargeback
     * @return
     */
    boolean upChargeback(Chargeback chargeback);

    /**
     * 通过id查询Chargeback
     * @param id
     * @return
     */
    Chargeback getChargebackById(int id);

    /**
     * 查询全部Chargeback
     * @return
     */
    List<Chargeback> getChargebackList();
}
